package batch.demo.bigdata.hdfs.model;

import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.mapred.lib.MultipleTextOutputFormat;

public class HDFSMultipleTextOutputFormat<K,V> extends MultipleTextOutputFormat<K,V> {

    @Override
    protected String generateFileNameForKeyValue(K key, V value, String name) {
        return String.valueOf(key);
    }

    @Override
    protected K generateActualKey(K key, V value) {
        return (K) NullWritable.get();
    }

}
